package com.todo.model.managers
{
	import com.todo.model.vos.Task;

	public class TaskParser
	{
		
			public function loadTasksFromXML(tasks:XML):Array 
			{
			var taskList:Array = new Array();
			
			for each( var thisTask:XML in tasks..task ) 
			{
				var task:Task = new Task();
			task.task_id = thisTask.task_id;
			task.description = thisTask.description;
			task.type = thisTask.type;
				
				taskList.push(task);
			}
			
			return taskList;
			}
		
	}
}